FROM registry.cn-hangzhou.aliyuncs.com/dockerhub_mirror/java:17-anolis

WORKDIR /demo-service

ARG JAR_FILE=target/docker-demo-service.jar

COPY ${JAR_FILE} app.jar

EXPOSE 8003

ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms128m -Xmx256m -Dspring.profiles.active=test"

CMD sleep 60; java $JAVA_OPTS -jar app.jar
